package com.itcat.exception;

import com.itcat.common.IErrorCode;
import lombok.Data;

/**
 * 自定义异常类
 */
@Data
public class BusinessException extends RuntimeException {

    private IErrorCode code;

    public BusinessException(IErrorCode code) {
        super(code.getMessage());
        this.code = code;
    }
}
